package com.xiaonan.fcmdemo;


import com.xiaonan.fcmpush.FcmPush;
import com.xiaonan.fcmpush.R;

import android.app.Activity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;

public class MainActivity extends Activity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
    }

    public void Register(View view) {
        String token = FcmPush.getToken();
        Log.d("xiaonan_push", "token:" + token);
    }

    public void unRegister(View view) {
        FcmPush.unRegister();
    }

}
